package com.bjsxt.ploymophism;

public class Animal {
    public void shout(){
        System.out.println("jlys!");
    }
}
class Dog extends Animal{
    public void shout(){
        System.out.println("www!");
    }

    public void seeDoor(){
        System.out.println("kmz!");
    }
}

class Cat extends Animal{
    public void shout(){
        System.out.println("mmm!");
    }
    public void catchMouse(){
        System.out.println("mzls!");
    }
}

